package inherit_2;

import inherit.Animal;

public class Dog extends Animal {
    public void func() {
        System.out.println(super.name);
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.func();
    }
}
